// Place all the styles related to the comments controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

#comments{
  .comment-master{
    //border-bottom: 1px solid #dedede;
  }

  .no-comments{
    font-size: 14px;
    font-style: italic;
  }
  .comments-container {
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 5px solid #dddddd;
    h1 {
      font-size: 36px;
      color: #283035;
      font-weight: 400;
      a {
        font-size: 18px;
        font-weight: 700;
      }
    }
  }

  .comments-list {
    margin-top: 20px;
    padding: 0;
    position: relative;
    &:before {
      content: '';
      width: 2px;
      height: 100%;
      background: #eee;
      position: absolute;
      left: 20px;
      top: 0;
    }
    &:after {
      content: '';
      position: absolute;
      background: #aaa;
      bottom: 0px;
      left: 17px;
      width: 8px;
      height: 8px;
      border: 3px solid #dee1e3;
      -webkit-border-radius: 50%;
      -moz-border-radius: 50%;
      border-radius: 50%;
    }
    li{
      margin-bottom: 15px;
      display: block;
      position: relative;
      &:after {
        content: '';
        display: block;
        clear: both;
        height: 0;
        width: 0;
      }
    }
    .comment-avatar {
      width: 40px;
      height: 40px;
      position: relative;
      z-index: 99;
      float: left;
      border: 3px solid #FFF;
      -webkit-border-radius: 50%;
      -moz-border-radius: 50%;
      border-radius: 50%;
      -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
      -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
      box-shadow: 0 1px 2px rgba(0,0,0,0.2);
      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
        vertical-align: inherit;
      }
    }
    .comment-box {
      width: calc(100% - 60px);
      float: right;
      position: relative;
      -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.16);
      -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.16);
      box-shadow: 0 0px 3px rgba(0, 0, 0, 0.16);
      &:before, &:after {
        content: '';
        height: 0;
        width: 0;
        position: absolute;
        display: block;
        border-width: 10px 12px 10px 0;
        border-style: solid;
        border-color: transparent #FCFCFC;
        top: 4px;
        left: -11px;
      }
      &:before {
        border-width: 10px 12px 11px 0;
        border-color: transparent rgba(0,0,0,0.08);
        left: -12px;
      }
    }
  }

  .reply-list{
    padding-left: 67px;
    clear: both;
    margin-top: 15px;
    &:before, &:after {
      display: none;
    }
    .reply-form-area{
      width: calc(100% - 45px) !important;
    }
    li:before {
      content: '';
      width: 45px;
      height: 2px;
      background: #f1f1f1;
      position: absolute;
      top: 14px;
      left: -46px;
    }
    .comment-avatar {
      width: 25px;
      height: 25px;
      border: 2px solid #fff;
    }
    .comment-box {
      width: calc(100% - 45px);

    }
  }

  .comment-main-level:after {
    content: '';
    width: 0;
    height: 0;
    display: block;
    clear: both;
  }

  .comment-box {
    .comment-head {
      background: #FCFCFC;
      padding: 5px 12px;
      border-bottom: 1px solid #f1f1f1;
      overflow: hidden;
      -webkit-border-radius: 4px 4px 0 0;
      -moz-border-radius: 4px 4px 0 0;
      border-radius: 4px 4px 0 0;
      i {
        float: right;
        margin-left: 14px;
        position: relative;
        top: 2px;
        color: #A6A6A6;
        cursor: pointer;
        -webkit-transition: color 0.3s ease;
        -o-transition: color 0.3s ease;
        transition: color 0.3s ease;
        &:hover {
          color: #25a1a2;
        }
      }
    }
    .comment-name {
      color: #283035;
      font-size: 14px;
      font-weight: 700;
      float: left;
      margin-right: 10px;
    }

    .comment-name {
      a{
        font-size: 13px;
        color: #283035;
      }
      &.by-author, &.by-author a {
        color: #25a1a2;
      }
      &.by-author:after {
        content: '博主';
        background: #238687;
        color: #FFF;
        font-size: 12px;
        padding: 1px 3px;
        font-weight: 500;
        margin-left: 10px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
      }
    }

    .comment-head {
      span{
        float: left;
        color: #999;
        font-size: 13px;
        position: relative;
        top: 1px;
      }
      .comment-others{
        display: inline;
      }
    }

    .comment-content {
      background: #FFF;
      padding: 12px;
      font-size: 15px;
      color: #595959;
      -webkit-border-radius: 0 0 4px 4px;
      -moz-border-radius: 0 0 4px 4px;
      border-radius: 0 0 4px 4px;
    }
  }
  .comment-form {
    margin: 20px 0 50px 0;
    .input-group{
      margin-bottom: 10px;
    }
    .captcha {
      padding: 2px;
      background-color: #fff;
    }
    .input-group-addon {
      background-color: #fff;
    }
    .rucaptcha-image{
      cursor: pointer;
      height: 28px;
      width: 82px;
    }
    @media screen and (max-width: 408px) {
      .checkbox{
        display: block;
        float: left;
        margin: 0 0 10px 0;
      }
      .actions{
        display: block;
      }
    }
  }
  .reply-form{
    display: none;
    margin: 0;
    .cancel-reply{
      margin-left: 10px;
    }
  }
  .reply-field{
    .reply-form-area{
      width: calc(100% - 60px);
      float: right;
      position: relative;
    }
    #reply-form-field{
      margin-top: 20px;
    }
  }
  .callback-form{
    padding-top: 20px;
    display: none;
    cursor: pointer;
    color: #25a1a2;
    font-size: 15px;
    font-style: italic;
  }
}